#include "MainServer.hpp"
#include <cstdio>
#include <cstring>
#include <iostream>

using namespace std;

int main() {
    MainServer s;
    s.createServer("0.0.0.0", 9508);
    s.Start(2);
    char cmd[] = {0};
    while (true) {
        scanf("%s", cmd);
        if (strcmp("quit", cmd) == 0) {
            s.Exit();
            break;
        }
    }
    cout << "main thread quit" << endl;
}
